package com.lagou.demo03.service;

import com.lagou.demo03.dao.UserDao;
import com.lagou.demo03.factory.UserDaoFactory;
import com.lagou.demo03.model.User;


public class UserService {
    private UserDao userDao;
    public UserService(){
        this.userDao = UserDaoFactory.getUserDao();
    }
    /**
     * 自定义成员方法实现根据参数指定的User对象来调用DAO层实现登陆功能
     */
    public User userLoginService(User user){
        return userDao.userLogin(user);
    }

}
